package org.jianfa.learn.springmvc.model;

import org.hibernate.validator.constraints.Length;
import org.jianfa.learn.springmvc.constraints.MyConstraint;

import javax.validation.constraints.NotNull;

public class User {

    @NotNull
    @Length(min = 3)
    private String firstName;

    @NotNull
    private String lastName;

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }
}
